package homework;

import framework.Factory;
import framework.Product;

import java.util.Vector;

public class HomeworkFactory extends Factory {
    private final Vector<String> owners = new Vector<>();

    @Override
    protected Product createProduct(String owner) {
        return new Homework(owner);
    }

    @Override
    protected void registerProduct(Product product) {
        owners.add(((Homework) product).getOwner());
    }
}
